package org.jiangy;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;

/**
 * <p>创建时间: 2024-8-12 10:56:31 </p>
 *
 * @author <a href="mailto:jiangliu0316@outlook.com" rel="nofollow">蒋勇</a>
 * @see <a href="https://docs.spring.io/spring-security/reference/servlet/authorization/method-security.html">启用 SpringSecurity 方法级授权验证</a>
 */
@Slf4j
@EnableMethodSecurity
@SpringBootApplication
//@SpringBootApplication(exclude = ErrorMvcAutoConfiguration.class)
public class Main {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Main.class, args);
        log.info("ErrorMvcAutoConfiguration {}", context.containsBean("errorMvcAutoConfiguration"));
    }
}